/**
 * Generali Solutions d'assurances - Tous droits réservés &copy; 2007 - 2010
 */

package fr.generali.relationclient.marketing.opt.listenomcampagne.builder;

import fr.generali.relationclient.marketing.opt.listenomcampagne.DtoCritereNomCampagne;

/**
 * @author Holmes Kelly
 */
public class DtoCritereNomCampagneBuilder extends DtoCritereNomCampagneBuilderBase<DtoCritereNomCampagneBuilder> {

    /**
     * constructeur
     */
    public DtoCritereNomCampagneBuilder() {
        super(new DtoCritereNomCampagne());
    }

    /**
     * @return DtoCritereNomCampagneBuilder
     */
    public static DtoCritereNomCampagneBuilder dtoCritereNomCampagne() {
        return new DtoCritereNomCampagneBuilder();
    }

    /**
     * @return instance
     */
    public DtoCritereNomCampagne build() {
        return getInstance();
    }
}

/**
 * @author Holmes Kelly
 * @param <GeneratorT>
 */
class DtoCritereNomCampagneBuilderBase<GeneratorT extends DtoCritereNomCampagneBuilderBase<GeneratorT>> {

    /**
     * instance
     */
    private DtoCritereNomCampagne instance;

    /**
     * @param aInstance instance
     */
    protected DtoCritereNomCampagneBuilderBase(DtoCritereNomCampagne aInstance) {
        instance = aInstance;
    }

    /**
     * @return instance
     */
    protected DtoCritereNomCampagne getInstance() {
        return instance;
    }

    /**
     * @param aValue nom campagne
     * @return GeneratorT
     */
    @SuppressWarnings("unchecked")
    public GeneratorT buildNomCampagne(String aValue) {
        instance.setNomCampagne(aValue);

        return (GeneratorT ) this;
    }

    /**
     * @param aValue id intermediaire
     * @return GeneratorT
     */
    @SuppressWarnings("unchecked")
    public GeneratorT buildIdIntermediaire(String aValue) {
        instance.setIdIntermediaire(aValue);

        return (GeneratorT ) this;
    }
}
